<?PHP
//connecting to the recruitment db and getting the userinfo
include 'config.php';
//making the database connection
$db = mysql_connect($snowD->localhost,$snowD->uname,$snowD->pass) or die(mysql_error());
mysql_select_db($snowD->db,$db) or die(mysql_error());

include 'toolAccess.php';
if(!empty($_SESSION['userid']))
{
	//$result = mysql_query("SELECT access FROM userinfo WHERE userid = '".$_SESSION['userid']."'");
	//$row = mysql_fetch_array($result);
	//$access = $row['access'];
	$userid = addslashes($_SESSION["userid"]);
	$access = getAcc('snowflake',$userid);
}
?>
